package com.luoqiz.demo.threadDemo;

public class Customer extends Thread {
	public void  run(){
		for(int i=0;i<10;i++){
			System.out.println("消费者喊麦--"+i);
			//当前线程瞬时释放cpu
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
